package com.sky.service;

import com.sky.dao.DishDTO;
import com.sky.dao.DishPageDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishWithFlavorVO;

import java.util.List;

public interface DishService {
    List<Dish> listByCategoryId(Long categoryId);

    PageResult page(DishPageDTO dishPageDTO);

    void save(DishDTO dishDTO);

    DishWithFlavorVO getById(Long id);

    void update(DishDTO dishDTO);

    void startOrStop(Integer status, Long id);

    void delete(List<Long> ids);


    List<DishWithFlavorVO> listWithFlavor(Long categoryId);
}

